/**
 * jims
 */
package com.jims.master.modules.finance.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.finance.dao.OutpPaymentsMoneDao;
import com.jims.master.modules.finance.entity.OutpAcctMaster;
import com.jims.master.modules.finance.entity.OutpPaymentsMone;
import com.jims.master.modules.finance.entity.OutpRcptMaster;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 门诊收费方式Service
 * @author chentao
 * @version 2017-03-06
 */
@Service
@Transactional(readOnly = true)
public class OutpPaymentsMoneService extends CrudService<OutpPaymentsMoneDao, OutpPaymentsMone> {

	public OutpPaymentsMone get(String id) {
		return super.get(id);
	}
	
	public List<OutpPaymentsMone> findList(OutpPaymentsMone outpPaymentsMone) {
		return super.findList(outpPaymentsMone);
	}
	
	public Page<OutpPaymentsMone> findPage(Page<OutpPaymentsMone> page, OutpPaymentsMone outpPaymentsMone) {
		return super.findPage(page, outpPaymentsMone);
	}
	
	@Transactional(readOnly = false)
	public int save(OutpPaymentsMone outpPaymentsMone) {
		return super.save(outpPaymentsMone);
	}
	
	@Transactional(readOnly = false)
	public int delete(OutpPaymentsMone outpPaymentsMone) {
		return super.delete(outpPaymentsMone);
	}

	/**
	 * 查询 支付方式 信息
	 * @param outpAcctMaster
	 * @return List<OutpPaymentsMone>
	 * @author  赵宁
	 */
	public List<OutpPaymentsMone> getPayments(OutpAcctMaster outpAcctMaster){
		return dao.getPayments(outpAcctMaster);
	}

	/**
	 * 查询支付方式--退费
	 * @param outpRcptMaster
	 * @return
	 * @author 赵宁
	 */
	public List<OutpPaymentsMone> getPatmentsByRefund(OutpRcptMaster outpRcptMaster){
		 return dao.getPaymentsByRefund(outpRcptMaster);
	}
}